<div class="nav">
    <a class="sel" href="{:U('index')}">会员列表</a>
    <a href="{:U('add')}">添加会员</a>
</div>
<div class="search">
    <form method="get" action="">
      
        会员手机：<input type="text" name="phone" style="width:80px" id="phone" value="{$phone}" class="input1" />
   
        会员等级：<select name="level_id" class="sel1" id="level_id">
            <option value="">所有</option>
            <foreach name="level_sel" item="level" key="k">
                <option value="{$k}">{$level}</option>
            </foreach>
        </select>
        是否禁用：<select name="status" class="sel1" id="status">
            <option value="">所有</option>
            <option value="1">启用</option>
            <option value="2">禁用</option>
        </select>
        &nbsp;<input type="submit" value="搜索" class="btn_search" />
        <input type="hidden" name="p" value="1" />
        <script type="text/javascript">
            $("#level_id").val("{$level_id}");        
            $("#status").val("{$status}");
        </script>
    </form>
</div>
<div class="list">
    <table class="table_list">
        <thead><tr>

                <td>会员手机</td>
                <td>会员等级</td>
                <td>积分</td>
                <td style="display:none">余额</td>
                <td>是否禁用</td>
                <td>注册时间</td>
                <td>操作</td>
            </tr>
        </thead>
        <tbody>
        <foreach name="list" item="list">
            <tr>
                <td>{$list.phone}</td>
                <td>{$list.level_name}</td>
                <td>{$list.point}</td>
                <td style="display:none"><span class="money">￥{$list.money}</span></td>
                <td><switch name="list.status">
                         <case value="1"><font color=green>正常</font></case>
                         <case value="2"><font color=red>禁用</font></case>
                    </switch>
                </td>
                <td>{$list.create_time|date='Y-m-d H:i:s',###}</td>
                <td><a class="btn_a" href="{:U('edit',Array('member_id'=>$list['member_id']))}">修改</a>
                    &nbsp;<a class="btn_a2" href="{:U('del',Array('member_id'=>$list['member_id']))}" onclick="return confirm('确定删除吗？')">删除</a>
                </td>
            </tr>
        </foreach>
        </tbody>
        <tfoot>
            <tr><td colspan="9"><div class="page">{$page}</div></td></tr>
        </tfoot>
    </table>
</div>
 
